package com.nian.app.api;

import com.nian.app.model.AppSwiperImages;
import com.nian.common.model.ServerResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/2 0002 11:00
 */
@Component
@FeignClient(value = "nian-app-service", fallback = AppSwiperImagesAPIHystrix.class)
public interface AppSwiperImagesAPI {

    @GetMapping("/api/swiper/list/{terminalType}/{pageType}")
    ServerResponse<List<AppSwiperImages>> swiperList(@PathVariable("terminalType") Integer terminalType, @PathVariable("pageType") Integer pageType);

}
